package com.yz.newspaper.pojo.po;

import com.baomidou.mybatisplus.annotation.IdType;

import java.time.LocalDate;

import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 值班表
 * </p>
 *
 * @author maike
 * @since 2024-04-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Duty对象", description="值班表")
public class Duty implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "值班人id")
    @NotNull
    private Long dutyUserId;

    @NotNull
    @ApiModelProperty(value = "值班开始时间")
    private LocalDate startTime;

    @NotNull
    @ApiModelProperty(value = "值班结束时间")
    private LocalDate endTime;

    @ApiModelProperty(value = "值班得分")
    private Integer dutyScore;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "值班天数")
    private Integer dutyDays;
}
